﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace Ssb.ContentTypes
{
    public class Animation_Content
        : ContentType
    {
        public Vector2 Coords;

        public int CurrentFrame { get; protected set; }
        public int Frames { get; protected set; }

        public List<string> AnimPaths { get; protected set; }

        public Animation_Content()
        {

        }

        public Animation Build(Game game)
        {
            Initialize(game);

            List<Texture2D> texes = new List<Texture2D>();

            foreach (string path in AnimPaths)
            {
                texes.Add(cm.Load<Texture2D>(path));
            }

            return new Animation(Coords, texes, Game);
        }
    }
}
